﻿using System;
using System.Web.UI;


namespace mojoPortal.Web.RS.SBM
{
    public partial class RSManageInvoice : RSBasePage
    {
        int _companyid = 0;
        int _locationid = 0;
        int _invoiceid = 0;

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["locationid"] != null)
                _locationid = Convert.ToInt32(Request.QueryString["locationid"].ToString());
            if (Request.QueryString["invoiceid"] != null)
                _invoiceid = Convert.ToInt32(Request.QueryString["invoiceid"].ToString());

            if (!Page.IsPostBack)
            {
                InitializeReadyServicePage("Invoice");
                RSUserIdentity userIdentity = GetRSUserIdentity();
                _companyid = userIdentity.RSCompanyId;

                if (_companyid > 0)
                {
                    ucInvoiceControl.LoadInvoiceDataByID(_companyid, _invoiceid);
                }
            }
        }


        protected void btnAddTask_Click(Object sender, EventArgs e)
        {

        }


    }
}